GC-mark temporary key values created when sorting (bug#69709)
authorMattias Engdegård <mattiase@acm.org>
Sun, 14 Apr 2024 16:20:47 +0000 (18:20 +0200)
committerMattias Engdegård <mattiase@acm.org>
Sun, 14 Apr 2024 16:29:16 +0000 (18:29 +0200)
commit3d3602055264ca3095b7f28ca7e27a6f2782649a
tree7611756442288e5095fe61a0bab1ab6d0f50fe80
parent568c1741352a4932508fbbd474b9fd9ebe90ddfb
GC-mark temporary key values created when sorting (bug#69709)

Bug reported and fix proposed by Aris Spathis.

* src/sort.c (merge_markmem): Mark heap-allocated temporary key values.
(tim_sort): Delay key function calls to after marking function has been
registered.
* test/src/fns-tests.el (fns-tests-sort-gc): New test.
src/sort.c
test/src/fns-tests.el